home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Mac Game Programming Gurus / TricksOfTheMacGameProgrammingGurus.iso / CodeWarrior Lite / Metrowerks C⁄C++ Lite / Headers / System Extras Headers / GX Headers / font menu library.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-08-02  |  2.8 KB  |  84 lines  |  [TEXT/MMCC]

  1. /*
  2.     File:        font menu library.h
  3.  
  4.     Copyright:    © 1984-1994 by Apple Computer, Inc., all rights reserved.
  5.  
  6.     WARNING
  7.     This file was auto generated by the interfacer tool. Modifications
  8.     must be made to the master file.
  9.  
  10. */
  11.  
  12.     #ifndef fontMenuLibraryIncludes
  13. #define fontMenuLibraryIncludes
  14.  
  15.     #ifndef __Menus__
  16. #include <Menus.h>
  17. /*    #include <Quickdraw.h>                                        */
  18. /*        #include <Types.h>                                        */
  19. /*            #include <ConditionalMacros.h>                        */
  20. /*            #include <MixedMode.h>                                */
  21. /*                #include <Traps.h>                                */
  22. /*        #include <QuickdrawText.h>                                */
  23. /*            #include <IntlResources.h>                            */
  24.     #endif
  25.  
  26.     #ifndef fontTypesIncludes
  27. #include "font types.h"
  28. /*    #include "math types.h"                                        */
  29.     #endif
  30.  
  31.     #ifndef graphicsTypesIncludes
  32. #include "graphics types.h"
  33.     #endif
  34.  
  35.     #ifndef layoutRoutinesIncludes
  36. #include "layout routines.h"
  37. /*    #include "layout types.h"                                    */
  38. /*    #include "graphics linkage.h"                                */
  39.     #endif
  40.  
  41.     #ifndef fontRoutinesIncludes
  42. #include "font routines.h"
  43.     #endif
  44.  
  45.     #ifdef __cplusplus
  46. extern "C" {
  47.     #endif
  48.  
  49. enum fontMenuAttributes {
  50.     noInstancesFontMenu            = 1
  51. };
  52.  
  53. typedef long fontMenuAttribute;
  54.  
  55. typedef boolean (*fontFilterProc)(gxFont fontID);
  56.  
  57. extern void SortMenu(MenuHandle menu);
  58. extern void DeleteMenuItems(MenuHandle menuH);
  59. extern long FontMenu(MenuHandle menu);
  60. extern long FontPlatformMenu(MenuHandle menu, gxFontPlatform platform, gxFontScript script, gxFontLanguage language);
  61. extern long FontFamilyMenu(MenuHandle menu);
  62. extern long FontFamilyPlatformMenu(MenuHandle menu, gxFontPlatform platform, gxFontScript script, gxFontLanguage language);
  63. extern MenuHandle FontStyleMenu(short menuID, gxFont family);
  64. extern short HierFontMenu(MenuHandle theMenu, short firstHierMenuID, fontFilterProc proc, fontMenuAttribute attr);
  65. extern gxFont DoHierFontMenuCommand(long menuResult, short hierFontMenuID, long *instanceIndex);
  66. extern boolean DoHierFontMenuCommandStyle(long menuResult, short hierFontMenuID, gxStyle aStyle, long matchInfo);
  67. extern short DoHierFontMenuCommandShape(long menuResult, short hierFontMenuID, gxShape aShape);
  68. extern long FontToQD(gxFont fontID, long *styleBits);
  69. extern long GetMenuRunFeatures(MenuHandle menu, gxFont fontID, gxRunFeature feature[]);
  70. extern void SetMenuRunFeatures(MenuHandle menu, gxFont fontID, long count, const gxRunFeature feature[]);
  71. extern void FontFeatureMenu(MenuHandle menu, gxFont fontID);
  72. extern void ToggleFeatureMenuItem(MenuHandle menuH, gxFont fontID, int item);
  73. extern void ToggleFeatureMenuFeature(MenuHandle menuH, gxFont fontID, gxRunFeature feature);
  74. extern void StyleFeatureMenu(MenuHandle menuH, const gxStyle style);
  75. extern long GetDefaultFontFeatures(gxFont fontID, gxRunFeature features[]);
  76. extern void SetShapeDefaultFeatures(gxShape dst, gxFont fontID);
  77. extern void SetStyleDefaultFeatures(gxStyle dst, gxFont fontID);
  78.     #ifdef __cplusplus
  79. }
  80.     #endif
  81.  
  82. #endif
  83.  
  84.